﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApplication1.Class.Bean
{
    class ClassCurrentUserSingleton : ClassPersonne
    {
        private static ClassCurrentUserSingleton instance = null;
        private static readonly object padlock = new object();

        ClassCurrentUserSingleton() : base()
        {
            
        }

        public static ClassCurrentUserSingleton Instance
        {
            get
            {
                lock (padlock)
                {
                    if (instance == null)
                    {
                        instance = new ClassCurrentUserSingleton();
                    }
                    return instance;
                }
            }
        }
    }
}
